﻿namespace CQRSLearn.Domain
{
    public class Product
    {
        public Guid Id { get; set; }
        public string Name { get; set; } = default!;
        public string Description { get; set; } = default!;
        public decimal Price { get; set; }

        private Product() { }

        public Product(string name,string description,decimal price) {
            Id= Guid.NewGuid();
            Name= name;
            Description= description;
            Price= price;
        }

    }
}
